package org.mysocial.datamodel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class SingleDestinationMessage extends Message
{
	@ManyToOne
	@JoinColumn(name = "receiver_account_fk", nullable = true)
	private Account receiver;

	@Column(name = "isRead")
	private Boolean read;

	public Account getReceiver()
	{
		return receiver;
	}

	public Boolean isRead()
	{
		return read;
	}

	public void setRead(Boolean read)
	{
		this.read = read;
	}

	public void setReceiver(Account receiver)
	{
		this.receiver = receiver;
	}
}
